docs: don't use an icon by default in the combobox shot
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Wed, 17 Jul 2013 23:34:22 +0000 (19:34 -0400)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Thu, 18 Jul 2013 00:48:59 +0000 (20:48 -0400)
docs/tools/widgets.c

index 1cbf35c1bd65af97fedf4d39a700804ac79f93db..2044cd911f9e344f5c28c8789a72bea3da87afdf 100644 (file)
@@ -427,15 +427,12 @@ create_combo_box (void)
 
   widget = gtk_combo_box_new ();
   gtk_cell_layout_clear (GTK_CELL_LAYOUT (widget));
-  cell = gtk_cell_renderer_pixbuf_new ();
-  gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (widget), cell, FALSE);
-  gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), cell, "icon-name", 0, NULL);
   cell = gtk_cell_renderer_text_new ();
   gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (widget), cell, FALSE);
-  gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), cell, "text", 1, NULL);
+  gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), cell, "text", 0, NULL);
 
-  store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
-  gtk_list_store_insert_with_values (store, NULL, -1, 0, "edit-delete", 1, "Combo Box", -1);
+  store = gtk_list_store_new (1, G_TYPE_STRING);
+  gtk_list_store_insert_with_values (store, NULL, -1, 0, "Combo Box", -1);
   gtk_combo_box_set_model (GTK_COMBO_BOX (widget), GTK_TREE_MODEL (store));
 
   gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);